package com.dhcc.DRGsHosp.facade.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;

import com.dhcc.DRGsHosp.facade.ClearCacheFacade;

import net.sf.ehcache.CacheManager;

/**
 * 
 * @ClassName:  ClearCacheFacadeImpl   
 * @Description:缓存管理  
 * @author: LiQingYang 
 * @date:2017年6月28日 上午11:29:46   
 *     
 * @Copyright: 2017 DHC2013-2017, All rights reserved. 
 * 注意：本内容仅限于东华软件股份公司内部传阅，禁止外泄以及用于其他的商业目的
 */
public class ClearCacheFacadeImpl implements ClearCacheFacade {

	@Autowired
    private CacheManager cacheManager;
	
	/**
	 * 
	 * <p>Title: removeAll</p>   
	 * <p>Description: 清除所有缓存</p>      
	 * @see com.dhcc.DRGsHosp.facade.ClearCacheFacade#removeAll()
	 */
	@CacheEvict(value={"drgsIndex3.1.1","drgscom3.1.1","drgsCaseDetail3.1.1"},allEntries=true)
    public void removeAll(){
		cacheManager.clearAll();
    }  
}
